package com.example.Mapper;

import com.example.API.AddFriendRequest;
import com.example.pojo.Friend;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FriendMapper {
    List<Friend> selectFriendList(int userId);

    List<Friend> findFriend(int selfId, String friendName);

    void addFriendRequest(int fromUserId, int toUserId, String reason);

    List<AddFriendRequest> getFriendRequest(int toUserId);


    void deleteFriendRequest(int fromUserId, int toUserId);

    void addFriend(int userId, int friendId);
}